home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / DELPHI / GPCLIP.ZIP / SAMPLES.ZIP / FRAME / GPCLIP / SAMPLES / MDIDATA.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1996-07-30  |  998 b   |  50 lines

  1. unit Mdidata;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, StdCtrls, Grids, DBGrids, DBCtrls, Mask, ExtCtrls, DB,
  8.   DBTables;
  9.  
  10. type
  11.   TForm3 = class(TForm)
  12.     Table1: TTable;
  13.     DataSource1: TDataSource;
  14.     Panel2: TPanel;
  15.     Label1: TLabel;
  16.     Label8: TLabel;
  17.     Label9: TLabel;
  18.     Label10: TLabel;
  19.     DBEdit1: TDBEdit;
  20.     DBComboBox1: TDBComboBox;
  21.     DBMemo1: TDBMemo;
  22.     DBGrid1: TDBGrid;
  23.     procedure FormClose(Sender: TObject; var Action: TCloseAction);
  24.     procedure FormCreate(Sender: TObject);
  25.   private
  26.     { Private declarations }
  27.   public
  28.     { Public declarations }
  29.   end;
  30.  
  31. var
  32.   Form3: TForm3;
  33.  
  34. implementation
  35.  
  36. {$R *.DFM}
  37.  
  38. procedure TForm3.FormClose(Sender: TObject; var Action: TCloseAction);
  39. begin
  40.   action := caFree;
  41. end;
  42.  
  43. procedure TForm3.FormCreate(Sender: TObject);
  44. begin
  45.   Table1.DatabaseName := ExtractFilePath( paramStr( 0 ) );
  46.   Table1.Open;
  47. end;
  48.  
  49. end.
  50.